package com.fourfinance.model.domain.error;

import java.util.ArrayList;
import java.util.List;

public class FormValidationError {

    private List<FieldValidationError> fieldErrors = new ArrayList<FieldValidationError>();

    public FormValidationError() {

    }

    public void addFieldError(String field, String message) {
        FieldValidationError fieldError = new FieldValidationError(field, message);
        fieldErrors.add(fieldError);
    }

    public List<FieldValidationError> getFieldErrors() {
        return fieldErrors;
    }
}
